package com.songcan.gateway.vo;

import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.GrantedAuthority;

import java.util.Collection;

public class YfUsernamePasswordAuthenticationToken extends UsernamePasswordAuthenticationToken {

    private String tokenValue;

    public YfUsernamePasswordAuthenticationToken(Object principal, Object credentials,String tokenValue) {
        super(principal, credentials);
        this.tokenValue = tokenValue;
    }


    public YfUsernamePasswordAuthenticationToken(Object principal, Object credentials, Collection<? extends GrantedAuthority> authorities,String tokenValue) {
        super(principal,credentials,authorities);
        this.tokenValue = tokenValue;
    }

    public String getTokenValue(){
        return  tokenValue;
    }
}
